﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace EZCRS.HCMS.Entity
{
    public class HCRS_TAUserInfo
    {
        public HCRS_TAUserInfo()
        { }
        #region Model
        private int? _userid;
        private string _username;
        private int? _corp_id;
        private string _iata;
        private string _hotelgroupid;
        private string _nohotelgroup;
        private string _resvcredit;
        private string _defaultrate;
        private string _usertype;
        private int? _userlevel;

        public HCRS_TAUserInfo(DataRow dr)
        {
            if (dr != null)
            {
                if (dr["UserID"].ToString() != "")
                    _userid = Convert.ToInt32(dr["UserID"].ToString());
                _username = dr["UserName"].ToString();
                if (dr["Corp_id"].ToString() != "")
                    _corp_id = Convert.ToInt32(dr["Corp_id"].ToString());
                _iata = dr["IATA"].ToString();
                _hotelgroupid = dr["hotelGroupID"].ToString();
                _nohotelgroup = dr["NoHotelGroup"].ToString();
                _resvcredit = dr["resvcredit"].ToString();
                _defaultrate = dr["defaultrate"].ToString();
                _usertype = dr["usertype"].ToString();
                if (dr["userlevel"].ToString() != "")
                    _userlevel = Convert.ToInt32(dr["userlevel"].ToString());
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? UserID
        {
            set { _userid = value; }
            get { return _userid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string UserName
        {
            set { _username = value; }
            get { return _username; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Corp_id
        {
            set { _corp_id = value; }
            get { return _corp_id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string IATA
        {
            set { _iata = value; }
            get { return _iata; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string hotelGroupID
        {
            set { _hotelgroupid = value; }
            get { return _hotelgroupid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string NoHotelGroup
        {
            set { _nohotelgroup = value; }
            get { return _nohotelgroup; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string resvcredit
        {
            set { _resvcredit = value; }
            get { return _resvcredit; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string defaultrate
        {
            set { _defaultrate = value; }
            get { return _defaultrate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string usertype
        {
            set { _usertype = value; }
            get { return _usertype; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? UserLevel
        {
            set { _userlevel = value; }
            get { return _userlevel; }
        }
        #endregion Model
    }
}
